package io.xxx.xbutler.data;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.xxx.xbutler.domain.Robot;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface RobotMapper extends BaseMapper<Robot> {

    /**
     * 门店只会绑定一个机器人。
     */
    Robot findByStoreId(@Param("storeId") Long storeId);

    Robot selectByContact(@Param("contactId") String contactId);

    Robot selectByRoom(@Param("roomId") String roomId);

    int refresh();
}
